import * as types from './mutation-types'
import {
  setUserInfoStorage,
  clearUserInfo,
  setLogoDataStorage
} from '../assets/js/cache'
export const setUserInfo = ({
  commit
}, query) => {
  commit(types.SET_USER_INFO, setUserInfoStorage(query))
}
export const setLogoData = ({
  commit
}, query) => {
  commit(types.SET_LOGO_DATA, setLogoDataStorage(query))
}
export const removeUserInfo = ({
  commit
}) => {
  commit(types.SET_USER_INFO, clearUserInfo())
}
